package com.echo.register.client.user;

import com.echo.register.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName: PatientFeignClient
 * @Package: com.echo.register.client.user
 * @Description:
 * @Author 谢同学
 * @Create 2024/1/4 21:26
 * @Version 1.0
 */
@FeignClient(value = "service-user")
@Repository
public interface UserFeignClient {
    /**
     * 查询就诊人信息
     * @param id
     * @return
     */
    @GetMapping("/api/user/patient/inner/get/{id}")
    Patient getPatientOrder(@PathVariable("id") Long id);
}
